﻿using TxtManager.Core.Entities;

namespace TxtManager.Core.Repository;

public interface IRepository<TEntity, in TId> where TEntity : BaseEntity<TId>
{


    Task<TEntity?> GetByIdAsync(TId id);
    Task<IEnumerable<TEntity>> GetAllAsync();
    Task AddAsync(TEntity entity);
    Task UpdateAsync(TEntity entity);
    Task DeleteAsync(TId id);

}